package pc29;

import java.util.Scanner;

public class J05Ex31CreditCard {
	public static void main(String[] args) {

		int i;
		String result0 = "";
		String result1, result2, result3, result4, result5, result6, result7, result8, result9;
		result1 = "35(JCB카드)"+"\t";
		result2 = "4(비자카드)"+"\t";
		result3 = "5(마스터카드, Maestro)"+"\t";

		result4 = "NH농협카드";
		result5 = "KB국민카드";
		result6 = "국민은행";
		result7 = "신한카드";
		result8 = "외환카드";
		result9 = "비씨카드";

		Scanner sc = new Scanner(System.in);

		System.out.println("숫자 6자리 입력해봐 : ");
		i = sc.nextInt();

		if (i == 356317) {
			result0 = result1 + result6;
		} else if (i == 356901) {
			result0 = result1 + result7;
		} else if (i == 356912) {
			result0 = result1 + result5;
		} else if (i == 404825) {
			result0 = result2 + result9;
		} else if (i == 438676) {
			result0 = result2 + result7;
		} else if (i == 457973) {
			result0 = result2 + result6;
		} else if (i == 515594) {
			result0 = result3 + result7;
		} else if (i == 524353) {
			result0 = result3 + result8;
		} else if (i == 540923) {
			result0 = result3 + result6;
		} else {
			System.out.println("잘못입력함");
		}
		System.out.println(result0);
	}
}
